package com.etc.service.impl;

import com.etc.dao.OwnerDao;
import com.etc.entity.Owner;
import com.etc.service.OwnerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class OwnerServiceImpl implements OwnerService {
    @Resource
    private OwnerDao ownerDao;
    @Override
    public List<Owner> findAllOwner() {
        return ownerDao.findAllOwner();
    }

    @Override
    public Owner findById(Integer id) {
        return ownerDao.findById(id);
    }

    @Override
    public List<Owner> findByPark(Integer id) {
        return ownerDao.findByPark(id);
    }

    @Override
    public List<Owner> findByBuilding(Integer id) {
        return ownerDao.findByBuilding(id);
    }

    @Override
    public Owner findByRoom(Integer id) {
        return ownerDao.findByRoom(id);
    }
}
